BUILD_DIRS = $(shell find . -mindepth 1 -type d)
#HOST_MKDIR=mkdir -p
#HOST_INSTALL=install

#IMAGES_DIR=$(shell pwd)/images
#export IMAGES_DIR HOST_MKDIR HOST_INSTALL

all:
	@$(foreach dir, $(BUILD_DIRS),  $(MAKE) -C $(dir) || exit 1;)

#install:
#	$(if $(wildcard $(IMAGES_DIR)), , $(HOST_MKDIR) $(IMAGES_DIR))
#	@$(foreach dir, $(BUILD_DIRS),  $(MAKE) -C $(dir) install || exit 1;)
#
clean:
	@$(foreach dir, $(BUILD_DIRS),  $(MAKE) -C $(dir) clean || exit 1;)
#	@rm -rf $(IMAGES_DIR)

#.PHONY:all install clean
.PHONY:all
